from django.db import models


# Create your models here.
class UserInfo(models.Model):
    userId = models.CharField(max_length=100, primary_key=True)
    password = models.CharField(max_length=100)
    isAdmin = models.BooleanField(default=False)


class Credit(models.Model):
    userId = models.CharField(max_length=100, primary_key=True)
    creditLevel = models.IntegerField(default=1)


class RefondRecord(models.Model):
    id = models.AutoField(primary_key=True)
    userId = models.CharField(max_length=100)
    ticketId = models.IntegerField(max_length=100,null=True)
    date = models.DateTimeField(max_length=100,null=True)
